import type { App } from 'vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//console.log('ElementPlusIconsVue', ElementPlusIconsVue)
//console.log(' Object.entries ElementPlusIconsVue', Object.entries(ElementPlusIconsVue))

//console.log('in element register')
export default (app: App) => {
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        //注册图标为该样式 el-icon-edit
        //el-icon-carettop
        app.component('el-icon-' + key.toLowerCase(), component);
        // console.log('el-icon-' + key.toLowerCase());
        
    }
}
